<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as'         => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->get('/forms/config', 'SystemSetController@settings');
    $router->post('/project/update', 'ProjectController@update');

    $router->resource('users', UserController::class);
    $router->resource('project', ProjectController::class);
    $router->resource('survey-template', SurveyTemplateController::class);
    $router->resource('team', TeamController::class);
    $router->resource('sweep', SweepController::class);
});
